import request from '/@/utils/request';

// 查询套餐活动支付订单列表
export function listOrder(query?: Object) {
  return request({
    url: '/module/vipOrder/list',
    method: 'get',
    params: query
  })
}

// 查询套餐活动支付订单详细
export function getOrder(id?: number) {
  return request({
    url: '/module/vipOrder/' + id,
    method: 'get'
  })
}

// 新增套餐活动支付订单
export function addOrder(data?: Object) {
  return request({
    url: '/module/vipOrder',
    method: 'post',
    data
  })
}

// 修改套餐活动支付订单
export function updateOrder(data?: Object) {
  return request({
    url: '/module/vipOrder',
    method: 'put',
    data
  })
}

// 修改套餐活动支付订单
export function refundOrder(data?: Object) {
  return request({
    url: '/module/vipOrder/refund/order',
    method: 'post',
    data
  })
}


// 查询退款信息
export function queryRefundOrder(id?: number) {
  return request({
    url: '/module/vipOrder/queryRefund/' + id,
    method: 'get'
  })
}


// 删除套餐活动支付订单
export function delOrder(id?: number) {
  return request({
    url: '/module/vipOrder/' + id,
    method: 'delete'
  })
}

// 导出套餐活动支付订单
export function exportOrder(query?: Object) {
  return request({
    url: '/module/vipOrder/export',
    method: 'get',
    params: query
  })
}
